﻿using LogAnalyzer.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Input;

namespace LogAnalyzer.ViewModel
{
    public class MainViewModel
    {
        public RouteGridViewModel routeGridViewModel;

        public MainViewModel()
        {
            App.Log = Util.LoadLog(@"C:\eclipse\workspace\Logging\1000");
            App.Nodes = (from n in App.Log.Where(x => x.what.type == Util.MessageType.Start) select new Node() { nodeId = n.to.nodeId, address = n.to.address }).ToList();
            routeGridViewModel = new RouteGridViewModel();
        }
    }
}
